home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
knowhow4
/
hypprn.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-10
|
1KB
|
31 lines
#include "hypprn.h"
HypertextPrint::HypertextPrint(rect coord, char* vName, char* fName,
int res, int interv,
BORDERS b_type, int s, char* h, int bak, int attr,
int p_height)
: HypertextView(coord, vName, fName, res, interv, b_type, s, h, bak,
attr, p_height)
{
int sx = textX(s);
int sy = textY(s);
print_to_prn = new Button(rect(coord.origin.X + 10 + sx,
coord.corner.Y - 2 - sy, coord.origin.X + 30 + sx,
coord.corner.Y - sy - 1), " PRINTER ");
print_to_prn->set_ret(1);
/* print_to_file = new Button(rect(coord.origin.X + 30 + sx,
coord.corner.Y - 2 - sy, coord.origin.X + 50 + sx,
coord.corner.Y - sy - 1), " FILE ");
print_to_file->set_ret(1);
*/
insert(print_to_prn, 2);
// insert(print_to_file, 2);
// assign(view_win, print_to_file, AC_OK);
assign(view_win, print_to_prn, AC_OK);
view_win->set_ret(RET_OK | RET_CANCEL);
}
/////////////////////////////////